package com.ruoyi.credential.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 密码箱凭证关联资源表对象 kw_credential_access
 * 
 * @author gonianer
 * @date 2023-11-16
 */
public class KwCredentialAccess extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** ID */
    private Long id;

    private Long userId;

    /** 凭证ID */
    @Excel(name = "凭证ID")
    private Long credentialId;

    /** 登录指定系统的ID */
    @Excel(name = "登录指定系统的ID")
    private Long targetId;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setCredentialId(Long credentialId) 
    {
        this.credentialId = credentialId;
    }

    public Long getCredentialId() 
    {
        return credentialId;
    }
    public void setTargetId(Long targetId) 
    {
        this.targetId = targetId;
    }

    public Long getTargetId() 
    {
        return targetId;
    }

    public Long getUserId() {
        return userId;
    }

    public void setUserId(Long userId) {
        this.userId = userId;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("userId", getUserId())
            .append("credentialId", getCredentialId())
            .append("targetId", getTargetId())
            .append("createTime", getCreateTime())
            .append("updateTime", getUpdateTime())
            .toString();
    }
}
